#!/usr/bin/python3

class Dog():
	"""模拟小狗"""
	def __init__(self,name,age):
		self.name=name
		self.age=age

	def sit(self):
		"""模拟小狗蹲下"""
		print(self.name.title()+' is now siting.')

	def roll_over(self):
		"""模拟小狗打滚"""
		print(self.name.title()+' rolled over!')

class WhiteDog(Dog):
	"""docstring for WhiteDog"""
	def __init__(self, name,age,battery):
		# super().__init__(name,age)
		super().__init__(name,age)
		self.battery = battery

	
	def desc_battery(self):
		print("battery:"+str(self.battery))


	def roll_over(self):
		print(self.name.title()+' while dog gungun')



# my_dog=Dog('will',5)

# my_dog.name="3333"

# print('My dog name is '+my_dog.name.title()+' .')
# print('My dog name is '+str(my_dog.age)+' year old.')

# my_dog.sit()
# my_dog.roll_over()

my_WhiteDog=WhiteDog("a","b",234)
my_WhiteDog.desc_battery()
my_WhiteDog.roll_over()